<?php


namespace App\Http\Controllers\admin\model;


use Illuminate\Support\Facades\DB;

class AppLogModel
{
    public static function queryWhereSum($where,$param,$field){
        return DB::table('t_app_log')
            ->where($where)
            ->where('create_time','>=',$param['begTime'])
            ->where('create_time','<=',$param['endTime'])
            ->sum("$field");
    }
}